from django.conf.urls import url

from news.serializers import CommentSerializer
from news.views import NewsCategoriesView, NewslistView, NewsdetailView, CateandnewsView, NewsCollectionView,\
     NewsfollowView, CommentView
from . import views

urlpatterns = [
    url(r'^newcategories$',NewsCategoriesView.as_view()),
    url(r'^newcastlist/(?P<category_id>\d+)$', CateandnewsView.as_view()),
    url(r'^handline$',NewslistView.as_view()),
    url(r'^handline/(?P<pk>\d+)$',NewsdetailView.as_view()),
    url(r'^newcol/(?P<pk>\d+)$',NewsCollectionView.as_view()),
    url(r'^newssubmit/$',views.NewsSubmitView.as_view()),
    url(r'^newsfollow/(?P<pk>\d+)$', NewsfollowView.as_view()),
    url(r'^newscomment/(?P<pk>\d+)$',CommentView.as_view()),


]